﻿@model WebShop.Models.HistoryModel

<div class="row-fluid">
    <div class="row">
        <div class="span3">
            &nbsp;</div>
        <div class="span6">
            <h3>@Model.Translate("orders_history")</h3>
            <table class="table table-striped cart">
                <thead>
                    <tr>
                        <th>@Model.Translate("order_date")</th>
                        <th>@Model.Translate("order_index")</th>
                        <th>@Model.Translate("order_price")</th>
                        <th>@Model.Translate("order_status")</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model.Orders)
                    {
                        <tr>
                            <td class="order_date">@item.CreatedDateTime</td>
                            <td><a href="@Url.RouteUrl("Default", new RouteValueDictionary { { "controller", "cart" }, { "action", "historyitem" }, { "id", item.Id } })">@item.Id</a></td>
                            <td class="product_price">@item.Price</td>
                            <td class="product_status">@Model.Translate("order_status_" + (int)item.Status)</td>
                            <td></td>
                        </tr>
                    }
                </tbody>
            </table>

        <div class="span3">&nbsp;</div>
    </div>
</div>